// 全局根路径
axios.defaults.baseURL = 'http://124.223.14.236:8060/admin'

// 请求拦截器
axios.interceptors.request.use(config => {
    // Do something before request is sent
    config.headers[`x-token`] = localStorage.getItem('x-token')
    return config;
}, error => {
    // Do something with request error
    return Promise.reject(error);
});